package edu.sctu.practice.class02.xuejiahua.test26;

/**
 * Created by Administrator on 2015/11/2.
 */
public abstract class Role {
      public String name;
      private int age;
      public boolean sex;

    public Role(String name, int age, boolean sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    public abstract void play();

    public void getName(){

    }

    public void setName(){
        System.out.println("NAME:"+name);
    }

    public void getAge(){

    }
    public void setAge(){
        System.out.println("AGE:"+age);
    }

    public void getSex(){

    }

    public void setSex(){
        System.out.println("SEX:"+sex);
    }

}
